package com.kede.api.order.controller;

import com.kede.api.order.controller.po.CreatePackageOrderPo;
import com.kede.api.order.service.IPackageManageService;
import com.kede.pojo.ResHttp;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author:Pr.li
 * @Date: create in 2023/9/17 14:50
 */
@RestController
@RequestMapping("order/package")
public class PackageController {

    @Resource
    private IPackageManageService packageManageService;

    @PostMapping("createPackageOrder")
    public ResHttp createPackageOrder(@RequestBody CreatePackageOrderPo packageOrderPo){
        return packageManageService.createPackageOrder(packageOrderPo);
    }

}
